package com.example.demo.command2;


/**
 * 遥控器，（具体命令）
 */
public class OrderCommand implements Command {
    private Chef chef;
    private Order order;

    public OrderCommand(Chef chef,Order order) {
        this.chef = chef;
        this.order = order;
    }

    @Override
    public void execute() {
        chef.MakeFood(order);
    }
}
